package br.com.crednove.paineis;

import br.com.crednove.controle.ControleFiltrarRefin;
import br.com.crednove.controle.ControleInicio;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
import javax.swing.JSpinner;
import javax.swing.JTextField;

public class PainelFiltroRefin extends javax.swing.JPanel {

    private ControleFiltrarRefin cftRefin;
    private ControleInicio ci;
    
    public PainelFiltroRefin(ControleInicio ci) {
        initComponents();
        this.cftRefin = new ControleFiltrarRefin(this);
        this.ci = ci;
    }

    public ControleFiltrarRefin getCftRefin() {
        return cftRefin;
    }

    public ControleInicio getCi() {
        return ci;
    }

    public JButton getBtnConfirmar() {
        return btnConfirmar;
    }

    public JButton getBtnFechar() {
        return btnFechar;
    }

    public JButton getBtnSelecionarArquivo() {
        return btnSelecionarArquivo;
    }

    public JButton getBtnSelecionarDiretorio() {
        return btnSelecionarDiretorio;
    }

    public JProgressBar getJpbProgresso() {
        return jpbProgresso;
    }

    public JPanel getJpnArquivo() {
        return jpnArquivo;
    }

    public JPanel getJpnParcelasAberto() {
        return jpnParcelasAberto;
    }

    public JPanel getJpnParcelasContrato() {
        return jpnParcelasContrato;
    }

    public JPanel getJpnQntdParcelas() {
        return jpnQntdParcelas;
    }

    public JPanel getJpnValorCoeficiente() {
        return jpnValorCoeficiente;
    }

    public JPanel getJpnValorLiquido() {
        return jpnValorLiquido;
    }

    public JPanel getJpnValorParcela() {
        return jpnValorParcela;
    }

    public JSpinner getJspMaxParcelasAberto() {
        return jspMaxParcelasAberto;
    }

    public JSpinner getJspMaxParcelasCont() {
        return jspMaxParcelasCont;
    }

    public JSpinner getJspMinParcelasAberto() {
        return jspMinParcelasAberto;
    }

    public JSpinner getJspMinParcelasCont() {
        return jspMinParcelasCont;
    }

    public JSpinner getJspMinParcelasPagas() {
        return jspMinParcelasPagas;
    }

    public JLabel getLblStatus() {
        return lblStatus;
    }

    public JTextField getTxtArquivo() {
        return txtArquivo;
    }

    public JTextField getTxtDiretorio() {
        return txtDiretorio;
    }

    public JTextField getTxtMaxVlLiquido() {
        return txtMaxVlLiquido;
    }

    public JTextField getTxtMaxVlParcela() {
        return txtMaxVlParcela;
    }

    public JTextField getTxtMinVlLiquido() {
        return txtMinVlLiquido;
    }

    public JTextField getTxtMinVlParcela() {
        return txtMinVlParcela;
    }

    public JTextField getTxtVlCoeficienteLuc() {
        return txtVlCoeficienteLuc;
    }

    public JTextField getTxtVlCoeficienteRed() {
        return txtVlCoeficienteRed;
    }

    
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jpnArquivo = new javax.swing.JPanel();
        txtArquivo = new javax.swing.JTextField();
        btnSelecionarArquivo = new javax.swing.JButton();
        txtDiretorio = new javax.swing.JTextField();
        btnSelecionarDiretorio = new javax.swing.JButton();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jpnParcelasContrato = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jspMinParcelasCont = new javax.swing.JSpinner();
        jLabel2 = new javax.swing.JLabel();
        jspMaxParcelasCont = new javax.swing.JSpinner();
        jpnParcelasAberto = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        jspMinParcelasAberto = new javax.swing.JSpinner();
        jLabel4 = new javax.swing.JLabel();
        jspMaxParcelasAberto = new javax.swing.JSpinner();
        jpnValorLiquido = new javax.swing.JPanel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        txtMinVlLiquido = new javax.swing.JTextField();
        txtMaxVlLiquido = new javax.swing.JTextField();
        jpnValorParcela = new javax.swing.JPanel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        txtMinVlParcela = new javax.swing.JTextField();
        txtMaxVlParcela = new javax.swing.JTextField();
        jpnValorCoeficiente = new javax.swing.JPanel();
        txtVlCoeficienteRed = new javax.swing.JTextField();
        txtVlCoeficienteLuc = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jpnQntdParcelas = new javax.swing.JPanel();
        jLabel11 = new javax.swing.JLabel();
        jspMinParcelasPagas = new javax.swing.JSpinner();
        jPanel9 = new javax.swing.JPanel();
        jpbProgresso = new javax.swing.JProgressBar();
        lblStatus = new javax.swing.JLabel();
        btnConfirmar = new javax.swing.JButton();
        btnFechar = new javax.swing.JButton();

        txtArquivo.setEditable(false);
        txtArquivo.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N

        btnSelecionarArquivo.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        btnSelecionarArquivo.setText("...");
        btnSelecionarArquivo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSelecionarArquivoActionPerformed(evt);
            }
        });

        txtDiretorio.setEditable(false);
        txtDiretorio.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N

        btnSelecionarDiretorio.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        btnSelecionarDiretorio.setText("...");
        btnSelecionarDiretorio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSelecionarDiretorioActionPerformed(evt);
            }
        });

        jLabel9.setText("Planilha para filtro: ");

        jLabel10.setText("Diretório de saída");

        javax.swing.GroupLayout jpnArquivoLayout = new javax.swing.GroupLayout(jpnArquivo);
        jpnArquivo.setLayout(jpnArquivoLayout);
        jpnArquivoLayout.setHorizontalGroup(
            jpnArquivoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnArquivoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpnArquivoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpnArquivoLayout.createSequentialGroup()
                        .addGroup(jpnArquivoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtArquivo)
                            .addComponent(txtDiretorio))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jpnArquivoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(btnSelecionarArquivo, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnSelecionarDiretorio, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)))
                    .addGroup(jpnArquivoLayout.createSequentialGroup()
                        .addGroup(jpnArquivoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel9)
                            .addComponent(jLabel10))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jpnArquivoLayout.setVerticalGroup(
            jpnArquivoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnArquivoLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel9)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jpnArquivoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtArquivo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnSelecionarArquivo))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel10)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jpnArquivoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtDiretorio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnSelecionarDiretorio))
                .addGap(18, 18, 18))
        );

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("OPÇÕES DE FILTRO"));

        jpnParcelasContrato.setBorder(javax.swing.BorderFactory.createTitledBorder("Parcelas no contrato"));

        jLabel1.setText("Mínimo");

        jLabel2.setText("Máximo");

        javax.swing.GroupLayout jpnParcelasContratoLayout = new javax.swing.GroupLayout(jpnParcelasContrato);
        jpnParcelasContrato.setLayout(jpnParcelasContratoLayout);
        jpnParcelasContratoLayout.setHorizontalGroup(
            jpnParcelasContratoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnParcelasContratoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpnParcelasContratoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(jspMinParcelasCont, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jpnParcelasContratoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2)
                    .addComponent(jspMaxParcelasCont, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jpnParcelasContratoLayout.setVerticalGroup(
            jpnParcelasContratoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnParcelasContratoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpnParcelasContratoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(jLabel2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jpnParcelasContratoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jspMinParcelasCont, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jspMaxParcelasCont, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jpnParcelasAberto.setBorder(javax.swing.BorderFactory.createTitledBorder("Parcelas em aberto"));

        jLabel3.setText("Mínimo");

        jspMinParcelasAberto.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(0), Integer.valueOf(0), null, Integer.valueOf(1)));

        jLabel4.setText("Máximo");

        jspMaxParcelasAberto.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(0), Integer.valueOf(0), null, Integer.valueOf(1)));

        javax.swing.GroupLayout jpnParcelasAbertoLayout = new javax.swing.GroupLayout(jpnParcelasAberto);
        jpnParcelasAberto.setLayout(jpnParcelasAbertoLayout);
        jpnParcelasAbertoLayout.setHorizontalGroup(
            jpnParcelasAbertoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnParcelasAbertoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpnParcelasAbertoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel3)
                    .addComponent(jspMinParcelasAberto, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jpnParcelasAbertoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel4)
                    .addComponent(jspMaxParcelasAberto, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jpnParcelasAbertoLayout.setVerticalGroup(
            jpnParcelasAbertoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnParcelasAbertoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpnParcelasAbertoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(jLabel4))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jpnParcelasAbertoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jspMinParcelasAberto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jspMaxParcelasAberto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jpnValorLiquido.setBorder(javax.swing.BorderFactory.createTitledBorder("Valor Líquido"));

        jLabel7.setText("Mínimo");

        jLabel8.setText("Máximo");

        txtMinVlLiquido.setText("0");

        txtMaxVlLiquido.setText("0");

        javax.swing.GroupLayout jpnValorLiquidoLayout = new javax.swing.GroupLayout(jpnValorLiquido);
        jpnValorLiquido.setLayout(jpnValorLiquidoLayout);
        jpnValorLiquidoLayout.setHorizontalGroup(
            jpnValorLiquidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnValorLiquidoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpnValorLiquidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtMinVlLiquido, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel7))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jpnValorLiquidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtMaxVlLiquido, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jpnValorLiquidoLayout.setVerticalGroup(
            jpnValorLiquidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnValorLiquidoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpnValorLiquidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(jLabel8))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jpnValorLiquidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtMinVlLiquido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtMaxVlLiquido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jpnValorParcela.setBorder(javax.swing.BorderFactory.createTitledBorder("Valor da Parcela"));

        jLabel5.setText("Mínimo");

        jLabel6.setText("Máximo");

        txtMinVlParcela.setText("0");

        txtMaxVlParcela.setText("0");
        txtMaxVlParcela.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtMaxVlParcelaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jpnValorParcelaLayout = new javax.swing.GroupLayout(jpnValorParcela);
        jpnValorParcela.setLayout(jpnValorParcelaLayout);
        jpnValorParcelaLayout.setHorizontalGroup(
            jpnValorParcelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnValorParcelaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpnValorParcelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtMinVlParcela, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jpnValorParcelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtMaxVlParcela, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jpnValorParcelaLayout.setVerticalGroup(
            jpnValorParcelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnValorParcelaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpnValorParcelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(jLabel6))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jpnValorParcelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtMinVlParcela, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtMaxVlParcela, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jpnValorCoeficiente.setBorder(javax.swing.BorderFactory.createTitledBorder("Valor do coeficiente"));

        txtVlCoeficienteRed.setText("0.0");

        txtVlCoeficienteLuc.setText("0.0");

        jLabel13.setText("Red:");

        jLabel14.setText("Luc:");

        javax.swing.GroupLayout jpnValorCoeficienteLayout = new javax.swing.GroupLayout(jpnValorCoeficiente);
        jpnValorCoeficiente.setLayout(jpnValorCoeficienteLayout);
        jpnValorCoeficienteLayout.setHorizontalGroup(
            jpnValorCoeficienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpnValorCoeficienteLayout.createSequentialGroup()
                .addGroup(jpnValorCoeficienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel13)
                    .addComponent(jLabel14))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jpnValorCoeficienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtVlCoeficienteLuc, javax.swing.GroupLayout.DEFAULT_SIZE, 98, Short.MAX_VALUE)
                    .addComponent(txtVlCoeficienteRed))
                .addContainerGap())
        );
        jpnValorCoeficienteLayout.setVerticalGroup(
            jpnValorCoeficienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnValorCoeficienteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpnValorCoeficienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtVlCoeficienteRed, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel13))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jpnValorCoeficienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtVlCoeficienteLuc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel14))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jpnQntdParcelas.setBorder(javax.swing.BorderFactory.createTitledBorder("Parcelas Pagas"));

        jLabel11.setText("Mínimo");

        javax.swing.GroupLayout jpnQntdParcelasLayout = new javax.swing.GroupLayout(jpnQntdParcelas);
        jpnQntdParcelas.setLayout(jpnQntdParcelasLayout);
        jpnQntdParcelasLayout.setHorizontalGroup(
            jpnQntdParcelasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnQntdParcelasLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpnQntdParcelasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel11)
                    .addComponent(jspMinParcelasPagas, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(73, Short.MAX_VALUE))
        );
        jpnQntdParcelasLayout.setVerticalGroup(
            jpnQntdParcelasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnQntdParcelasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel11)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jspMinParcelasPagas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jpnValorParcela, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jpnValorLiquido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jpnValorCoeficiente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                        .addComponent(jpnParcelasContrato, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jpnParcelasAberto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jpnQntdParcelas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(8, 8, 8)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jpnValorLiquido, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jpnValorParcela, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jpnValorCoeficiente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jpnParcelasAberto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jpnParcelasContrato, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jpnQntdParcelas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jpbProgresso.setStringPainted(true);

        lblStatus.setText("...");

        btnConfirmar.setText("Confirmar");
        btnConfirmar.setEnabled(false);
        btnConfirmar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnConfirmarActionPerformed(evt);
            }
        });

        btnFechar.setText("Fechar");
        btnFechar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnFecharActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblStatus)
                    .addComponent(jpbProgresso, javax.swing.GroupLayout.PREFERRED_SIZE, 307, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnFechar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnConfirmar)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(btnFechar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addComponent(lblStatus)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jpbProgresso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(btnConfirmar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jpnArquivo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jpnArquivo, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void btnSelecionarArquivoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSelecionarArquivoActionPerformed
        this.cftRefin.btnSelecionarArquivoEvento();
    }//GEN-LAST:event_btnSelecionarArquivoActionPerformed

    private void btnSelecionarDiretorioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSelecionarDiretorioActionPerformed
        this.cftRefin.btnSelecionarDiretorioEvento();
    }//GEN-LAST:event_btnSelecionarDiretorioActionPerformed

    private void txtMaxVlParcelaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtMaxVlParcelaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtMaxVlParcelaActionPerformed

    private void btnConfirmarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnConfirmarActionPerformed
        this.cftRefin.btnConfirmarEvento();
    }//GEN-LAST:event_btnConfirmarActionPerformed

    private void btnFecharActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFecharActionPerformed
        this.cftRefin.fecharEvento(this.ci);
    }//GEN-LAST:event_btnFecharActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnConfirmar;
    private javax.swing.JButton btnFechar;
    private javax.swing.JButton btnSelecionarArquivo;
    private javax.swing.JButton btnSelecionarDiretorio;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JProgressBar jpbProgresso;
    private javax.swing.JPanel jpnArquivo;
    private javax.swing.JPanel jpnParcelasAberto;
    private javax.swing.JPanel jpnParcelasContrato;
    private javax.swing.JPanel jpnQntdParcelas;
    private javax.swing.JPanel jpnValorCoeficiente;
    private javax.swing.JPanel jpnValorLiquido;
    private javax.swing.JPanel jpnValorParcela;
    private javax.swing.JSpinner jspMaxParcelasAberto;
    private javax.swing.JSpinner jspMaxParcelasCont;
    private javax.swing.JSpinner jspMinParcelasAberto;
    private javax.swing.JSpinner jspMinParcelasCont;
    private javax.swing.JSpinner jspMinParcelasPagas;
    private javax.swing.JLabel lblStatus;
    private javax.swing.JTextField txtArquivo;
    private javax.swing.JTextField txtDiretorio;
    private javax.swing.JTextField txtMaxVlLiquido;
    private javax.swing.JTextField txtMaxVlParcela;
    private javax.swing.JTextField txtMinVlLiquido;
    private javax.swing.JTextField txtMinVlParcela;
    private javax.swing.JTextField txtVlCoeficienteLuc;
    private javax.swing.JTextField txtVlCoeficienteRed;
    // End of variables declaration//GEN-END:variables
}
